//获取填写框内容
$fromname=param('fromname'); 
$fromurl=param('fromurl'); 
$byname=param('byname'); 

$arr = db_find_one('fq_from', array('tid'=>$tid));
if($arr==true){
	if($fromname!=='' or $byname!==''){
		db_update('fq_from', array('tid'=>$tid),array('fromname'=>$fromname,'fromurl'=>$fromurl,'byname'=>$byname));
	}
}else{
	if($fromname!=='' or $byname!==''){
		db_insert('fq_from',array('tid'=>$tid,'fromname'=>$fromname,'fromurl'=>$fromurl,'byname'=>$byname));
	}
}



